function createSprite(): THREE.Sprite {
  const map = new THREE.TextureLoader().load(
    // "https://sanniantea-comp.oss-cn-hangzhou.aliyuncs.com/comp/%E6%9F%9A%E5%AD%90.png"
    "./imgs/youzi.png"
  );
  let material = new THREE.SpriteMaterial({
    color: 0x0000ff,
    map,
  });
  let geo = new THREE.Sprite(material);
  //   geo.scale.set(100, 200, 1);
  return geo;
}
function moveSprite(sprites: THREE.Sprite[]): void {
  const sp = sprites[0];
  sp.position.x += 1;
}

// let sprites: THREE.Sprite[] = [];
// {
//   const count = 10;
//   for (let i = 0; i < count; i++) {
//     const sp = createSprite();
//     sp.position.z = 20 * i;
//     sp.position.x = Math.random() * 40;
//     sp.position.y = Math.random() * 40;
//     sprites.push(sp);
//   }
// }